@m4l/components 9.3.21-JT20102025.beta.1 → 9.3.21-JT20102025.beta.2

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.
@@ -729,9 +729,9 @@ const dataGridStyles = {
729
729
  /**
730
730
  * Header de la card con checkbox y acciones
731
731
  */
732
- cardHeader: ({ theme }) => ({
732
+ cardHeader: ({ theme, ownerState }) => ({
733
733
  display: "flex",
734
- justifyContent: "space-between",
734
+ justifyContent: ownerState?.hasCheckedRows ? "space-between" : "flex-end",
735
735
  alignItems: "center",
736
736
  width: "100%",
737
737
  height: "24px",
@@ -54,7 +54,7 @@ function CardHeader({ row, onOpenDetail }) {
54
54
  }),
55
55
  []
56
56
  );
57
- return /* @__PURE__ */ jsxs(CardHeaderStyled, { children: [
57
+ return /* @__PURE__ */ jsxs(CardHeaderStyled, { ownerState: { hasCheckedRows: showCheckbox }, children: [
58
58
  showCheckbox && /* @__PURE__ */ jsx(CardHeaderLeftStyled, { children: /* @__PURE__ */ jsx(
59
59
  CheckboxCellAdapter,
60
60
  {
@@ -251,6 +251,7 @@ export type DataGridOwnerState<TRow, TSummaryRow, TKey extends RowKey = RowKey>
251
251
  viewMode?: ViewMode;
252
252
  isActive?: boolean;
253
253
  hasActions?: boolean;
254
+ hasCheckedRows?: boolean;
254
255
  };
255
256
  export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots | ControlNavigateSlots | ColumnIconFormatterSlots;
256
257
  export type DataGridStyles = OverridesStyleRules<DataGridSlotsType, typeof DATAGRID_PREFIX_NAME, Theme>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.21-JT20102025.beta.1",
3
+ "version": "9.3.21-JT20102025.beta.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {