@balena/ui-shared-components 14.0.4-build-renovate-major-7-react-router-dom-43ac6521fbd5427fb1cd1669e1f55a313f0a6155-1 → 14.0.4-build-material-7-ea405b56507f5c0bab908e32767032593ec57de9-1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Avatar, DialogActions, DialogContent, Divider,
|
|
2
|
+
import { Avatar, DialogActions, DialogContent, Divider, Grid, Stack, Typography, } from '@mui/material';
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { FALLBACK_LOGO_UNKNOWN_DEVICE, isUrlAccessible, stripVersionBuild, } from './utils';
|
|
5
5
|
import { ImageForm } from './ImageForm';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import Grid from '@mui/material
|
|
2
|
+
import { Grid } from '@mui/material';
|
|
3
3
|
import { canExpand, descriptionId, getTemplate, getUiOptions, titleId, } from '@rjsf/utils';
|
|
4
4
|
export const ObjectFieldTemplate = (props) => {
|
|
5
5
|
var _a, _b;
|
|
@@ -11,7 +11,7 @@ export const ObjectFieldTemplate = (props) => {
|
|
|
11
11
|
return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(idSchema), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs(Grid, Object.assign({ container: true, spacing: 2, style: { marginTop: '10px' } }, ((_b = (_a = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema['ui:grid']) === null || _a === void 0 ? void 0 : _a.container) !== null && _b !== void 0 ? _b : {}), { children: [properties.map((element, index) => {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
13
|
return element.hidden ? (element.content) : (_jsx(Grid, Object.assign({ item: true, xs: 12, sx: { marginBottom: '10px' } }, ((_g = (_e = (_c = (_b = (_a = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema[element.name]) === null || _a === void 0 ? void 0 : _a['ui:grid']) === null || _b === void 0 ? void 0 : _b.item) !== null && _c !== void 0 ? _c : (_d = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema['ui:grid']) === null || _d === void 0 ? void 0 : _d[element.name]) !== null && _e !== void 0 ? _e : (_f = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema['ui:grid']) === null || _f === void 0 ? void 0 : _f.item) !== null && _g !== void 0 ? _g : {}), { children: element.content }), index));
|
|
14
|
-
}), canExpand(schema, uiSchema, formData) && (_jsx(Grid, { container: true, justifyContent: "flex-end", children: _jsx(Grid, {
|
|
14
|
+
}), canExpand(schema, uiSchema, formData) && (_jsx(Grid, { container: true, justifyContent: "flex-end", children: _jsx(Grid, { children: _jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema),
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- If `disabled` is false, we still want to disable the button if `readonly` is true
|
|
16
16
|
disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) }) }))] }))] }));
|
|
17
17
|
};
|
|
@@ -33,7 +33,9 @@ const ArrayFieldTemplate = ({ items, canAdd, onAddClick, }) => {
|
|
|
33
33
|
'.MuiGrid-root > .form-group.field.field-object > .MuiFormControl-root > .MuiGrid-root.MuiGrid-container.MuiGrid-spacing-xs-2': {
|
|
34
34
|
marginTop: '-8px!important',
|
|
35
35
|
},
|
|
36
|
-
}, children: [element.children, _jsx(Box, { display: "flex", width: "50px", alignItems: "center", justifyContent: "center", children: index !== 0 && (_jsx(IconButton, { "aria-label": t('actions.remove_filter'),
|
|
36
|
+
}, children: [element.children, _jsx(Box, { display: "flex", width: "50px", alignItems: "center", justifyContent: "center", children: index !== 0 && (_jsx(IconButton, { "aria-label": t('actions.remove_filter'),
|
|
37
|
+
// @ts-expect-error The typing of the current version of @rjsf/utils does not show that `onDropIndexClick` exists, even though it does
|
|
38
|
+
onClick: element.onDropIndexClick(element.index), sx: { mt: 2 }, children: _jsx(FontAwesomeIcon, { icon: faTimes }) })) })] }), _jsx(Box, { display: "flex", my: 2, children: canAdd && index === items.length - 1 && (_jsx(Button, { "aria-label": t('aria_labels.add_filter_in_or'), variant: "text", color: "primary", onClick: onAddClick, startIcon: _jsx(FontAwesomeIcon, { icon: faPlus }), children: t('actions.add_alternative') })) })] }, element.key));
|
|
37
39
|
}) }));
|
|
38
40
|
};
|
|
39
41
|
const widgets = {
|
package/dist/theme.js
CHANGED
|
@@ -1077,7 +1077,7 @@ export const theme = createTheme({
|
|
|
1077
1077
|
},
|
|
1078
1078
|
},
|
|
1079
1079
|
},
|
|
1080
|
-
|
|
1080
|
+
MuiGrid: {
|
|
1081
1081
|
// We should only apply this spacing to Grid components with `container`
|
|
1082
1082
|
// But MUI does not currently support that for defaultProps
|
|
1083
1083
|
// See: https://github.com/mui/material-ui/issues/34812
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "14.0.4-build-
|
|
3
|
+
"version": "14.0.4-build-material-7-ea405b56507f5c0bab908e32767032593ec57de9-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"@emotion/styled": "^11.10.6",
|
|
18
18
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
19
19
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
20
|
-
"@mui/lab": "
|
|
21
|
-
"@mui/material": "^
|
|
22
|
-
"@mui/styled-engine-sc": "^
|
|
23
|
-
"@mui/x-data-grid": "^7.
|
|
20
|
+
"@mui/lab": "7.0.0-beta.14",
|
|
21
|
+
"@mui/material": "^7.0.0",
|
|
22
|
+
"@mui/styled-engine-sc": "^7.0.0",
|
|
23
|
+
"@mui/x-data-grid": "^7.29.8",
|
|
24
24
|
"@react-google-maps/api": "^2.18.1",
|
|
25
|
-
"@rjsf/core": "
|
|
26
|
-
"@rjsf/mui": "
|
|
27
|
-
"@rjsf/utils": "
|
|
28
|
-
"@rjsf/validator-ajv8": "
|
|
25
|
+
"@rjsf/core": "6.0.0-beta.12",
|
|
26
|
+
"@rjsf/mui": "6.0.0-beta.12",
|
|
27
|
+
"@rjsf/utils": "6.0.0-beta.12",
|
|
28
|
+
"@rjsf/validator-ajv8": "6.0.0-beta.12",
|
|
29
29
|
"@tanstack/react-query": "^5.64.2",
|
|
30
30
|
"@types/jest": "^29.5.14",
|
|
31
31
|
"ajv": "^8.17.1",
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
"react-dom": "^18.2.0",
|
|
44
44
|
"react-dropzone": "^14.2.3",
|
|
45
45
|
"react-helmet": "^6.1.0",
|
|
46
|
+
"react-is": "^18.2.0",
|
|
46
47
|
"react-markdown": "^10.0.0",
|
|
47
|
-
"react-router-dom": "^
|
|
48
|
+
"react-router-dom": "^6.28.0",
|
|
48
49
|
"remark-breaks": "^4.0.0",
|
|
49
50
|
"remark-gfm": "^4.0.0",
|
|
50
51
|
"rimraf": "^6.0.0",
|
|
@@ -132,9 +133,10 @@
|
|
|
132
133
|
},
|
|
133
134
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
134
135
|
"versionist": {
|
|
135
|
-
"publishedAt": "2025-09-
|
|
136
|
+
"publishedAt": "2025-09-16T11:38:34.680Z"
|
|
136
137
|
},
|
|
137
138
|
"overrides": {
|
|
138
|
-
"storybook": "$storybook"
|
|
139
|
+
"storybook": "$storybook",
|
|
140
|
+
"react-is": "^18.2.0"
|
|
139
141
|
}
|
|
140
142
|
}
|