@crystaldesign/forms 26.7.0-beta.8 → 26.7.0-rc.0

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.
@@ -8,7 +8,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 } from '@jsonforms/core';
10
10
  import { jsx, Fragment } from 'react/jsx-runtime';
11
- import Grid from '@mui/material/Grid2';
11
+ import Grid from '@mui/material/Grid';
12
12
  import Divider from '@mui/material/Divider';
13
13
  import { useTranslation, getLogger } from '@crystaldesign/diva-core';
14
14
  import Ajv from 'ajv';
@@ -110,7 +110,7 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
110
110
  } else {
111
111
  return /*#__PURE__*/jsx("div", {
112
112
  style: visible ? undefined : {
113
- display: 'node'
113
+ display: 'none'
114
114
  },
115
115
  children: /*#__PURE__*/jsx(Grid, {
116
116
  container: true,
@@ -119,7 +119,7 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
119
119
  children: elements.map(function (child, index) {
120
120
  var _child$options;
121
121
  return /*#__PURE__*/jsx(Grid, {
122
- size: ((_child$options = child.options) === null || _child$options === void 0 ? void 0 : _child$options.xs) || true,
122
+ size: ((_child$options = child.options) === null || _child$options === void 0 ? void 0 : _child$options.xs) || 'grow',
123
123
  children: /*#__PURE__*/jsx(JsonFormsDispatch, {
124
124
  uischema: child,
125
125
  schema: schema,
@@ -159,19 +159,10 @@ var ExtendedMaterialHorizontalLayoutRenderer = function ExtendedMaterialHorizont
159
159
  };
160
160
  var ExtendedMaterialHorizontalLayout = withJsonFormsLayoutProps(ExtendedMaterialHorizontalLayoutRenderer);
161
161
 
162
- /**
163
- * Tests if there is a custom style specifed
164
- */
165
- var hasAdditionalOptions = function hasAdditionalOptions(uischema) {
166
- return !!Object.keys(uischema.options || {}).find(function (k) {
167
- return k == 'xs';
168
- });
169
- };
170
- var hasChildAdditionalOptions = function hasChildAdditionalOptions(uischema) {
171
- var _elements;
172
- return (_elements = uischema.elements) === null || _elements === void 0 ? void 0 : _elements.some(hasAdditionalOptions);
173
- };
174
- var extendedMaterialHorizontalLayoutTester = rankWith(3, and(uiTypeIs('HorizontalLayout'), hasChildAdditionalOptions));
162
+ // jsonforms' own MaterialHorizontalLayout still uses the legacy MUI Grid API (`<Grid item xs>`),
163
+ // which MUI v7's new Grid ignores, so its items no longer grow/distribute. Render every
164
+ // HorizontalLayout through this `size`-based renderer instead (rank 3 beats the default's rank 2).
165
+ var extendedMaterialHorizontalLayoutTester = rankWith(3, uiTypeIs('HorizontalLayout'));
175
166
 
176
167
  var DividerRenderer = function DividerRenderer() {
177
168
  return /*#__PURE__*/jsx(Divider, {
@@ -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,EAAiC,WAAW,EAAsB,YAAY,EAAuC,MAAM,iBAAiB,CAAC;;AAmDpJ,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,EAAoB,WAAW,EAAsB,YAAY,EAAuC,MAAM,iBAAiB,CAAC;;AAmDvI,wBAAkF;AAKlF,eAAO,MAAM,sCAAsC,EAAE,YAAwD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/forms",
3
- "version": "26.7.0-beta.8",
3
+ "version": "26.7.0-rc.0",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -16,14 +16,14 @@
16
16
  "ajv": "8.17.1"
17
17
  },
18
18
  "peerDependencies": {
19
- "@emotion/react": "^11.4.1",
20
- "@emotion/styled": "^11.3.0",
21
- "@mui/icons-material": "^6.1.5",
22
- "@mui/material": "^6.1.5",
19
+ "@emotion/react": "^11.13.3",
20
+ "@emotion/styled": "^11.13.0",
21
+ "@mui/icons-material": "7.3.11",
22
+ "@mui/material": "7.3.11",
23
23
  "react": "^18.3.1",
24
24
  "react-dom": "^18.3.1"
25
25
  },
26
26
  "module": "build/esm/index.js",
27
27
  "types": "./build/types/forms/src/index.d.ts",
28
- "gitHead": "524eabaabec875268f9a0253f99f4c223dfebc65"
28
+ "gitHead": "b65b125877e413f7263eea35690b28d0134da537"
29
29
  }