@balena/ui-shared-components 15.2.3-build-material-7-36076d224af2d4134f2375ef50f71e060cce68e0-1 → 15.2.3-build-material-7-5b444ad090f70e211345857a9993c33674539765-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, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Grid } from '@mui/material';
2
+ import Grid from '@mui/material/Grid';
3
3
  import { canExpand, descriptionId, getTemplate, getUiOptions, titleId, } from '@rjsf/utils';
4
4
  export const ObjectFieldTemplate = (props) => {
5
5
  var _a, _b;
@@ -7,6 +7,7 @@ import { PasswordWidget } from './Widgets/PasswordWidget';
7
7
  import { SelectWidget } from './Widgets/SelectWidget';
8
8
  import { FileWidget } from './Widgets/FileWidget';
9
9
  import { Fragment, forwardRef } from 'react';
10
+ import { ObjectFieldTemplate } from './FieldTemplates/ObjectFieldTemplate';
10
11
  import { Templates } from '@rjsf/mui';
11
12
  const internalWidgets = {
12
13
  PasswordWidget,
@@ -22,7 +23,7 @@ const FormWrapper = styled('div')({
22
23
  export const RJSForm = forwardRef(function RJSForm(_a, ref) {
23
24
  var { hideSubmitButton, submitButtonProps, actionButtons, validator = ajvValidator, widgets, children, sx, onFocus, onBlur, onClick, templates } = _a, otherProps = __rest(_a, ["hideSubmitButton", "submitButtonProps", "actionButtons", "validator", "widgets", "children", "sx", "onFocus", "onBlur", "onClick", "templates"]);
24
25
  // paddingY is resolving an outline glitch that is truncated when inside a container.
25
- return (_jsx(FormWrapper, { children: _jsx(Box, { sx: Object.assign({ paddingY: '1px' }, sx), onFocus: onFocus, onBlur: onBlur, onClick: onClick, children: _jsxs(Form, Object.assign({ ref: ref, validator: validator, showErrorList: false, widgets: Object.assign(Object.assign({}, internalWidgets), (widgets !== null && widgets !== void 0 ? widgets : {})), templates: templates }, otherProps, { children: [hideSubmitButton && _jsx(Fragment, {}), actionButtons === null || actionButtons === void 0 ? void 0 : actionButtons.map((_a, index) => {
26
+ return (_jsx(FormWrapper, { children: _jsx(Box, { sx: Object.assign({ paddingY: '1px' }, sx), onFocus: onFocus, onBlur: onBlur, onClick: onClick, children: _jsxs(Form, Object.assign({ ref: ref, validator: validator, showErrorList: false, widgets: Object.assign(Object.assign({}, internalWidgets), (widgets !== null && widgets !== void 0 ? widgets : {})), templates: Object.assign({ ObjectFieldTemplate }, templates) }, otherProps, { children: [hideSubmitButton && _jsx(Fragment, {}), actionButtons === null || actionButtons === void 0 ? void 0 : actionButtons.map((_a, index) => {
26
27
  var { sx: actionButtonSx } = _a, buttonProps = __rest(_a, ["sx"]);
27
28
  return (_jsx(Button, Object.assign({ sx: [
28
29
  {
@@ -14,7 +14,7 @@ const transformToReadableValue = (parsedFilterDescription) => {
14
14
  return dateFormat(value, 'PPPppp');
15
15
  }
16
16
  const schemaEnum = findInObject(schema, 'enum');
17
- const schemaEnumNames = findInObject(schema, 'ui:enumNames');
17
+ const schemaEnumNames = findInObject(schema, 'enumNames');
18
18
  if (schemaEnum && schemaEnumNames) {
19
19
  const index = schemaEnum.findIndex((a) => isEqual(a, value));
20
20
  return schemaEnumNames[index];
@@ -13,7 +13,6 @@ import { findInObject } from '../../utils';
13
13
  import { getRefSchema } from '../../schemaOps';
14
14
  import { DialogWithCloseButton } from '../../../DialogWithCloseButton';
15
15
  import { RJSForm } from '../../../Form';
16
- import { ObjectFieldTemplate } from '../../../Form/FieldTemplates/ObjectFieldTemplate';
17
16
  const ArrayFieldTemplate = ({ items, canAdd, onAddClick, }) => {
18
17
  const { t } = useTranslation();
19
18
  return (_jsxs(Box, { className: "array", children: [items, canAdd && (_jsx(Box, { className: "rjsf-array-item-add", children: _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') }) }))] }));
@@ -245,5 +244,5 @@ export const FiltersDialog = ({ schema, data = initialFormData, onClose, }) => {
245
244
  onClick: () => {
246
245
  setIsFirstValidation(false);
247
246
  },
248
- }, templates: { ObjectFieldTemplate } })) }) }));
247
+ } })) }) }));
249
248
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "15.2.3-build-material-7-36076d224af2d4134f2375ef50f71e060cce68e0-1",
3
+ "version": "15.2.3-build-material-7-5b444ad090f70e211345857a9993c33674539765-1",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -135,7 +135,7 @@
135
135
  },
136
136
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
137
137
  "versionist": {
138
- "publishedAt": "2025-11-06T17:55:54.553Z"
138
+ "publishedAt": "2025-11-11T12:33:16.066Z"
139
139
  },
140
140
  "overrides": {
141
141
  "storybook": "$storybook",