@m4l/components 9.3.10-BE220825-beta.3 → 9.3.10-BE250825-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.
@@ -0,0 +1,9 @@
1
+ import "react";
2
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3
+ function getDefaultExportFromCjs(x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
+ }
6
+ export {
7
+ commonjsGlobal as c,
8
+ getDefaultExportFromCjs as g
9
+ };
File without changes
@@ -4,7 +4,7 @@ import { o as objectLogsStyles } from "../ObjectLogs.styles.js";
4
4
  import { S as Stack } from "../../mui_extended/Stack/Stack.js";
5
5
  import { W as WindowBase } from "../../WindowBase/WindowBase.js";
6
6
  import { D as DetailDialog } from "../subcomponents/DetailDialog/index.js";
7
- import ReactJson from "@microlink/react-json-view";
7
+ import { R as ReactJson } from "../../../not_recognized/index.js";
8
8
  import { O as ObjectLogsSlots } from "./ObjectLogsEnum.js";
9
9
  import { T as Tooltip } from "../../mui_extended/Tooltip/Tooltip.js";
10
10
  import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
@@ -28,11 +28,9 @@ function DetailDialog(props) {
28
28
  return /* @__PURE__ */ jsx(
29
29
  ReactJsonViewer,
30
30
  {
31
- name: null,
32
- sortKeys: true,
31
+ value: detail,
33
32
  displayDataTypes: false,
34
- quotesOnKeys: false,
35
- src: detail
33
+ quotesOnKeys: false
36
34
  }
37
35
  );
38
36
  }
@@ -1,16 +1,28 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
+ import { JsonViewer } from "@textea/json-viewer";
3
4
  import { R as ReactJsonViewerRootStyled } from "./slots/ReactJsonViewerSlots.js";
4
5
  import { R as REACT_JSON_VIEWER_CLASSES } from "./constants.js";
6
+ import { useTheme } from "@mui/material";
7
+ import { g as getReactJsonViewerTheme } from "./helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js";
5
8
  const ReactJsonViewer = (props) => {
6
- const { className, dataTestId } = props;
9
+ const { className, dataTestId, ...others } = props;
10
+ const muiTheme = useTheme();
11
+ const theme = getReactJsonViewerTheme(muiTheme);
7
12
  return /* @__PURE__ */ jsx(
8
13
  ReactJsonViewerRootStyled,
9
14
  {
10
15
  className: clsx(REACT_JSON_VIEWER_CLASSES.root, className),
11
16
  dataTestId,
12
17
  role: "application",
13
- "aria-label": "JSON data viewer"
18
+ "aria-label": "JSON data viewer",
19
+ children: /* @__PURE__ */ jsx(
20
+ JsonViewer,
21
+ {
22
+ theme,
23
+ ...others
24
+ }
25
+ )
14
26
  }
15
27
  );
16
28
  };
@@ -1,8 +1,8 @@
1
- import { ThemeObject } from '@microlink/react-json-view';
2
1
  import { Theme } from '@mui/material';
2
+ import { Colorspace } from '@textea/json-viewer';
3
3
  /**
4
4
  * Función para obtener los colores del tema de MUI.
5
5
  * @param muiTheme - Tema de MUI.
6
6
  * @returns Colores del tema.
7
7
  */
8
- export declare const getReactJsonViewerTheme: (muiTheme: Theme) => ThemeObject;
8
+ export declare const getReactJsonViewerTheme: (muiTheme: Theme) => Colorspace;
@@ -0,0 +1,23 @@
1
+ const getReactJsonViewerTheme = (muiTheme) => {
2
+ return {
3
+ base00: muiTheme.vars?.palette?.background?.default,
4
+ base01: muiTheme.vars?.palette?.background?.base,
5
+ base02: muiTheme.vars?.palette?.background?.neutral,
6
+ base03: muiTheme.vars?.palette?.text?.disabled,
7
+ base04: muiTheme.vars?.palette?.text?.secondary,
8
+ base05: muiTheme.vars?.palette?.text?.primary,
9
+ base06: muiTheme.vars?.palette?.text?.primary,
10
+ base07: muiTheme.vars?.palette?.text?.primary,
11
+ base08: muiTheme.vars?.palette?.chips?.error?.outlined?.colorTone,
12
+ base09: muiTheme.vars?.palette?.chips?.orange?.outlined?.color,
13
+ base0A: muiTheme.vars?.palette?.chips?.warning?.outlined?.colorTone,
14
+ base0B: muiTheme.vars?.palette?.chips?.forest?.outlined?.color,
15
+ base0C: muiTheme.vars?.palette?.chips?.aqua?.outlined?.colorTone,
16
+ base0D: muiTheme.vars?.palette?.chips?.info?.outlined?.colorTone,
17
+ base0E: muiTheme.vars?.palette?.chips?.pink?.outlined?.colorTone,
18
+ base0F: muiTheme.vars?.palette?.chips?.persianGreen?.outlined?.colorTone
19
+ };
20
+ };
21
+ export {
22
+ getReactJsonViewerTheme as g
23
+ };
@@ -1,9 +1,9 @@
1
- import { ReactJsonViewProps } from '@microlink/react-json-view';
2
1
  import { ReactJsonViewerSlots } from './slots/ReactJsonViewerEnum';
3
2
  import { M4LOverridesStyleRules } from '../../../@types/augmentations';
4
3
  import { REACT_JSON_VIEWER_KEY_COMPONENT } from './constants';
5
4
  import { Theme } from '@mui/material';
6
- export interface ReactJsonViewerProps extends Omit<ReactJsonViewProps, 'theme'> {
5
+ import { JsonViewerProps } from '@textea/json-viewer';
6
+ export interface ReactJsonViewerProps extends Omit<JsonViewerProps, 'theme'> {
7
7
  className?: string;
8
8
  dataTestId?: string;
9
9
  }