remoraid 2.26.4 → 2.28.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.
@@ -44,15 +44,15 @@ function JSONModal({
44
44
  }) {
45
45
  const theme = import_core2.useRemoraidTheme();
46
46
  const stringValue = typeof innerProps.content === "string" ? innerProps.content : JSON.stringify(innerProps.content, null, theme.jsonStringifySpace);
47
- return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(jsx_dev_runtime.Fragment, {
47
+ return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(import_core2.InputWrapperScrollArea, {
48
+ mah: 575,
48
49
  children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(import_core.JsonInput, {
49
- variant: "filled",
50
+ onChange: () => {},
50
51
  value: stringValue,
51
- validationError: "Invalid JSON",
52
52
  formatOnBlur: true,
53
53
  autosize: true,
54
54
  minRows: 4,
55
- maxRows: 24,
55
+ variant: "unstyled",
56
56
  ...innerProps.componentsProps?.jsonInput
57
57
  }, undefined, false, undefined, this)
58
58
  }, undefined, false, undefined, this);
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  // src/modals/components/JSONModal/index.tsx
3
3
  import { JsonInput } from "@mantine/core";
4
- import { useRemoraidTheme } from "remoraid/core";
5
- import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
4
+ import { InputWrapperScrollArea, useRemoraidTheme } from "remoraid/core";
5
+ import { jsxDEV } from "react/jsx-dev-runtime";
6
6
  function JSONModal({
7
7
  innerProps
8
8
  }) {
9
9
  const theme = useRemoraidTheme();
10
10
  const stringValue = typeof innerProps.content === "string" ? innerProps.content : JSON.stringify(innerProps.content, null, theme.jsonStringifySpace);
11
- return /* @__PURE__ */ jsxDEV(Fragment, {
11
+ return /* @__PURE__ */ jsxDEV(InputWrapperScrollArea, {
12
+ mah: 575,
12
13
  children: /* @__PURE__ */ jsxDEV(JsonInput, {
13
- variant: "filled",
14
+ onChange: () => {},
14
15
  value: stringValue,
15
- validationError: "Invalid JSON",
16
16
  formatOnBlur: true,
17
17
  autosize: true,
18
18
  minRows: 4,
19
- maxRows: 24,
19
+ variant: "unstyled",
20
20
  ...innerProps.componentsProps?.jsonInput
21
21
  }, undefined, false, undefined, this)
22
22
  }, undefined, false, undefined, this);