@crystaldesign/forms 24.14.0-beta.3 → 24.14.0-beta.31

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.
@@ -3,12 +3,12 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import React, { useState, useEffect, useMemo } from 'react';
6
- import { useJsonForms, ResolvedJsonFormsDispatch, withJsonFormsLayoutProps, areEqual, JsonForms } from '@jsonforms/react';
6
+ import { useJsonForms, ResolvedJsonFormsDispatch, withJsonFormsLayoutProps, JsonFormsDispatch, JsonForms } from '@jsonforms/react';
7
7
  import { materialRenderers, materialCells } from '@jsonforms/material-renderers';
8
8
  import { withVanillaControlProps, JsonFormsStyleContext, vanillaStyles, vanillaRenderers, vanillaCells } from '@jsonforms/vanilla-renderers';
9
9
  import { rankWith, and, uiTypeIs, or, createAjv } from '@jsonforms/core';
10
10
  import { jsx, Fragment } from 'react/jsx-runtime';
11
- import { Grid } from '@material-ui/core';
11
+ import Grid from '@mui/material/Grid2';
12
12
  import { useTranslation, getLogger } from '@crystaldesign/diva-core';
13
13
 
14
14
  (function() {
@@ -117,9 +117,8 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
117
117
  children: elements.map(function (child, index) {
118
118
  var _child$options;
119
119
  return /*#__PURE__*/jsx(Grid, {
120
- item: true,
121
- xs: ((_child$options = child.options) === null || _child$options === void 0 ? void 0 : _child$options.xs) || true,
122
- children: /*#__PURE__*/jsx(ResolvedJsonFormsDispatch, {
120
+ size: ((_child$options = child.options) === null || _child$options === void 0 ? void 0 : _child$options.xs) || true,
121
+ children: /*#__PURE__*/jsx(JsonFormsDispatch, {
123
122
  uischema: child,
124
123
  schema: schema,
125
124
  path: path,
@@ -132,7 +131,9 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
132
131
  })
133
132
  });
134
133
  }
135
- }, areEqual);
134
+ }, function (prevProps, nextProps) {
135
+ return prevProps.visible === nextProps.visible && prevProps.elements === nextProps.elements && prevProps.schema === nextProps.schema && prevProps.path === nextProps.path && prevProps.enabled === nextProps.enabled && prevProps.renderers === nextProps.renderers && prevProps.cells === nextProps.cells;
136
+ });
136
137
  var ExtendedMaterialHorizontalLayoutRenderer = function ExtendedMaterialHorizontalLayoutRenderer(_ref2) {
137
138
  var uischema = _ref2.uischema,
138
139
  renderers = _ref2.renderers,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { RankedTester } from '@jsonforms/core';
3
- declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfLayout>;
2
+ import { LayoutProps, RankedTester } from '@jsonforms/core';
3
+ declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
4
4
  export default _default;
5
5
  export declare const extendedMaterialHorizontalLayoutTester: RankedTester;
6
6
  //# sourceMappingURL=ExtendedMaterialHorizontalLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedMaterialHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/material/layout/ExtendedMaterialHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkE,YAAY,EAAuC,MAAM,iBAAiB,CAAC;;AAsCpJ,wBAAkF;AAQlF,eAAO,MAAM,sCAAsC,EAAE,YAAwF,CAAC"}
1
+ {"version":3,"file":"ExtendedMaterialHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/material/layout/ExtendedMaterialHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiC,WAAW,EAAsB,YAAY,EAAuC,MAAM,iBAAiB,CAAC;;AAmDpJ,wBAAkF;AAQlF,eAAO,MAAM,sCAAsC,EAAE,YAAwF,CAAC"}
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  import { RankedTester } from '@jsonforms/core';
2
- declare const _default: (props: any) => JSX.Element;
3
+ declare const _default: (props: any) => React.JSX.Element;
3
4
  export default _default;
4
5
  /**
5
6
  * Tester for a styled horizontal layout.
@@ -1 +1 @@
1
- {"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqC,YAAY,EAAsD,MAAM,iBAAiB,CAAC;wCAejF,IAAK,OAAO;AAWjE,wBAAiG;AAQjG;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,YAAwG,CAAC"}
1
+ {"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAqC,YAAY,EAAsD,MAAM,iBAAiB,CAAC;wCAsCP,MAAO,GAAG,CAAC,OAAO;AAZjJ,wBAAiG;AAQjG;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,YAAwG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/forms",
3
- "version": "24.14.0-beta.3",
3
+ "version": "24.14.0-beta.31",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -9,18 +9,18 @@
9
9
  "react-dom": "18.3.1"
10
10
  },
11
11
  "dependencies": {
12
- "@jsonforms/core": "^2.5.2",
13
- "@jsonforms/material-renderers": "^2.5.2",
14
- "@jsonforms/react": "^2.5.2",
15
- "@jsonforms/vanilla-renderers": "^2.5.2"
12
+ "@jsonforms/core": "^3.4.1",
13
+ "@jsonforms/material-renderers": "^3.4.1",
14
+ "@jsonforms/react": "^3.4.1",
15
+ "@jsonforms/vanilla-renderers": "^3.4.1"
16
16
  },
17
17
  "peerDependencies": {
18
- "@material-ui/core": "^4.7.0",
19
- "@material-ui/icons": "^4.5.1",
18
+ "@mui/icons-material": "^6.1.5",
19
+ "@mui/material": "^6.1.5",
20
20
  "react": "^18.3.1",
21
21
  "react-dom": "^18.3.1"
22
22
  },
23
23
  "module": "build/esm/index.js",
24
24
  "types": "./build/types/forms/src/index.d.ts",
25
- "gitHead": "92813a2a592d129e55443b0bdd6f8050f9befa23"
25
+ "gitHead": "5d346ade39d6694c172cd1d3107452a5b9affd7d"
26
26
  }