@bigbinary/neeto-atoms 1.0.109 → 1.0.110

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.
@@ -3986,7 +3986,7 @@ const HeaderCellMenu = ({
3986
3986
  const enableDelete = meta?.enableDelete === true;
3987
3987
  const moreActions = meta?.moreActions ?? [];
3988
3988
  const currentSort = column.getIsSorted();
3989
- const hasAnyAction = isSortable || isHidable || enableAddColumn || enableColumnFreeze && column.getCanPin() || enableDelete || onMoveColumn && (canMoveLeft || canMoveRight) || moreActions.length > 0;
3989
+ const hasAnyAction = isSortable || isHidable && !!onHideColumn || enableAddColumn || enableColumnFreeze && column.getCanPin() || enableDelete && !!onDeleteColumn || onMoveColumn && (canMoveLeft || canMoveRight) || moreActions.length > 0;
3990
3990
  if (!hasAnyAction) return null;
3991
3991
  return /* @__PURE__ */ jsxRuntime.jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxRuntime.jsxs(primitives_DropdownMenu.DropdownMenu, { children: [
3992
3992
  /* @__PURE__ */ jsxRuntime.jsx(primitives_DropdownMenu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4178,7 +4178,7 @@ const DataTable = ({
4178
4178
  persistColumnSizing = false,
4179
4179
  columnSizing: columnSizingProp,
4180
4180
  onColumnSizingChange: onColumnSizingChangeProp,
4181
- enableColumnFreeze = true,
4181
+ enableColumnFreeze = false,
4182
4182
  columnPinning: columnPinningProp,
4183
4183
  onColumnPinningChange: onColumnPinningChangeProp,
4184
4184
  localStorageKeyPrefix,
@@ -4262,7 +4262,7 @@ const DataTable = ({
4262
4262
  columnOrder: columnOrderProp,
4263
4263
  onColumnOrderChange: onColumnOrderChangeProp
4264
4264
  });
4265
- const showHeaderMenu = enableHeaderMenu ?? (enableColumnFreeze || enableAddColumn || !!onColumnHideProp || !!onColumnDelete || !!onColumnUpdate || !!onMoreActionClick);
4265
+ const showHeaderMenu = enableHeaderMenu ?? (enableSorting || enableColumnFreeze || enableAddColumn || !!onColumnHideProp || !!onColumnDelete || !!onColumnUpdate || !!onMoreActionClick);
4266
4266
  const allColumns = React.useMemo(() => {
4267
4267
  const cols = enableColumnResize ? columns.map((col) => ({
4268
4268
  ...col,
@@ -4501,7 +4501,7 @@ const DataTable = ({
4501
4501
  /* @__PURE__ */ jsxRuntime.jsx(HeaderDescription, { column: header.column })
4502
4502
  ] }),
4503
4503
  /* @__PURE__ */ jsxRuntime.jsx(SortIndicator, { column: header.column }),
4504
- showHeaderMenu && !isSelectionCol && /* @__PURE__ */ jsxRuntime.jsx(
4504
+ showHeaderMenu && /* @__PURE__ */ jsxRuntime.jsx(
4505
4505
  HeaderCellMenu,
4506
4506
  {
4507
4507
  column: header.column,
@@ -4612,4 +4612,4 @@ exports.useColumnVisibility = useColumnVisibility;
4612
4612
  exports.useTablePagination = useTablePagination;
4613
4613
  exports.useTableSelection = useTableSelection;
4614
4614
  exports.useTableSort = useTableSort;
4615
- //# sourceMappingURL=DataTable-7OC5qqoG.js.map
4615
+ //# sourceMappingURL=DataTable-BpX59uHL.js.map