@moontra/moonui-pro 2.26.35 → 2.26.37

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
@@ -74025,18 +74025,15 @@ function DataTable({
74025
74025
  }
74026
74026
  ) });
74027
74027
  },
74028
- cell: ({ row, table: table2 }) => {
74029
- const isSelected = row.getIsSelected();
74028
+ cell: ({ row }) => {
74030
74029
  const rowId = row.id;
74031
- const tableState2 = table2.getState();
74032
- console.log(`Row ${rowId}: isSelected=${isSelected}, rowSelection state:`, tableState2.rowSelection);
74030
+ const isSelected = !!rowSelection[rowId];
74033
74031
  return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
74034
74032
  "input",
74035
74033
  {
74036
74034
  type: "checkbox",
74037
74035
  checked: isSelected,
74038
74036
  onChange: (e) => {
74039
- console.log(`Toggling row ${rowId} to ${e.target.checked}`);
74040
74037
  row.toggleSelected(e.target.checked);
74041
74038
  },
74042
74039
  onClick: (e) => {
@@ -74056,7 +74053,7 @@ function DataTable({
74056
74053
  cols = [checkboxColumn, ...cols];
74057
74054
  }
74058
74055
  return cols;
74059
- }, [columns, selectable, enableRowSelection]);
74056
+ }, [columns, selectable, enableRowSelection, rowSelection]);
74060
74057
  const table = useReactTable({
74061
74058
  data: stableData,
74062
74059
  columns: processedColumns,
@@ -74148,14 +74145,14 @@ function DataTable({
74148
74145
  manualPagination,
74149
74146
  pageCount,
74150
74147
  state: {
74148
+ ...externalState || {},
74151
74149
  sorting: externalState?.sorting ?? sorting,
74152
74150
  columnFilters: externalState?.columnFilters ?? columnFilters,
74153
74151
  columnVisibility: externalState?.columnVisibility ?? columnVisibility,
74154
74152
  rowSelection,
74155
74153
  // Always use internal rowSelection state
74156
74154
  globalFilter: externalState?.globalFilter ?? globalFilter,
74157
- pagination: externalState?.pagination ?? paginationState,
74158
- ...externalState || {}
74155
+ pagination: externalState?.pagination ?? paginationState
74159
74156
  },
74160
74157
  initialState: {
74161
74158
  pagination: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.35",
3
+ "version": "2.26.37",
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,7 @@
81
81
  "react-dom": ">=18.0.0 || ^19.0.0"
82
82
  },
83
83
  "dependencies": {
84
- "@moontra/moonui-pro": "^2.26.34",
84
+ "@moontra/moonui-pro": "^2.26.36",
85
85
  "@radix-ui/react-accordion": "^1.2.11",
86
86
  "@radix-ui/react-avatar": "^1.1.10",
87
87
  "@radix-ui/react-checkbox": "^1.3.2",