@m4l/layouts 9.3.1-beta.5 → 9.3.1-beta.6
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.
|
@@ -30,6 +30,7 @@ function ModuleDetailTabs(props) {
|
|
|
30
30
|
TabContent,
|
|
31
31
|
{
|
|
32
32
|
style: { display: isMatched ? "flex" : "none" },
|
|
33
|
+
...tab.background ? { background: tab.background } : {},
|
|
33
34
|
children: /* @__PURE__ */ jsx(tab.tabContent, { data: detailData, endPointData, hasPrivilegeDetail, ...tab.componentProps })
|
|
34
35
|
},
|
|
35
36
|
tab.value
|
|
@@ -47,6 +47,10 @@ export interface ModuleDatailTab<T extends Record<string, any> = Record<string,
|
|
|
47
47
|
* automáticamente por ModuleDetailTabs
|
|
48
48
|
*/
|
|
49
49
|
componentProps?: Omit<React.ComponentProps<C>, keyof ModuleDetailTabContent<T, K>>;
|
|
50
|
+
/**
|
|
51
|
+
* "background" Indica si el contenido del tab debe tener un fondo, default: false
|
|
52
|
+
*/
|
|
53
|
+
background?: boolean;
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* Interfaz para las props del tab de logs
|
|
@@ -15,6 +15,7 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
|
|
|
15
15
|
value: string;
|
|
16
16
|
tabContent: import('react').FunctionComponent<any>;
|
|
17
17
|
componentProps?: Omit<any, keyof import('./types').ModuleDetailTabContent<T_1, K_1>> | undefined;
|
|
18
|
+
background?: boolean;
|
|
18
19
|
dictionaryId?: string;
|
|
19
20
|
size?: Extract<import('@m4l/styles').Sizes, "small" | "medium"> | undefined;
|
|
20
21
|
children?: null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack } from "@m4l/components";
|
|
3
3
|
import { u as useBaseAccordions } from "./useBaseAccordions.js";
|
|
4
4
|
function useDynamicAccordions(props) {
|
|
5
5
|
const { configDynamicAccordions } = props;
|
|
@@ -10,7 +10,7 @@ function useDynamicAccordions(props) {
|
|
|
10
10
|
endPointData,
|
|
11
11
|
configDynamicAccordions
|
|
12
12
|
});
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx(Stack, { direction: "column", gap: "4px", style: { height: "auto" }, children: accordionsComponents });
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/layouts",
|
|
3
|
-
"version": "9.3.1-beta.
|
|
3
|
+
"version": "9.3.1-beta.6",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "M4L Team ",
|
|
6
6
|
"lint-staged": {
|
|
7
7
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@m4l/components": "9.2.56-beta.
|
|
10
|
+
"@m4l/components": "9.2.56-beta.6",
|
|
11
11
|
"@m4l/core": "^2.0.0",
|
|
12
|
-
"@m4l/graphics": "7.1.1-beta.
|
|
13
|
-
"@m4l/styles": "7.1.28-beta.
|
|
12
|
+
"@m4l/graphics": "7.1.1-beta.6",
|
|
13
|
+
"@m4l/styles": "7.1.28-beta.6"
|
|
14
14
|
},
|
|
15
15
|
"resolutions": {
|
|
16
16
|
"glob": "^10.4.5",
|