@balena/ui-shared-components 1.0.0 → 1.0.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.
@@ -20,7 +20,7 @@ export var ObjectFieldTemplate = function (props) {
20
20
  var DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, uiOptions);
21
21
  var AddButton = registry.templates.ButtonTemplates.AddButton;
22
22
  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, __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(function (element, index) {
23
- var _a, _b;
24
- return element.hidden ? (element.content) : (_jsx(Grid, __assign({ item: true, xs: 12, style: { marginBottom: '10px' } }, ((_b = (_a = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema['ui:grid']) === null || _a === void 0 ? void 0 : _a.item) !== null && _b !== void 0 ? _b : {}), { children: element.content }), index));
23
+ var _a, _b, _c, _d, _e, _f, _g;
24
+ return element.hidden ? (element.content) : (_jsx(Grid, __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));
25
25
  }), canExpand(schema, uiSchema, formData) && (_jsx(Grid, __assign({ container: true, justifyContent: "flex-end" }, { children: _jsx(Grid, __assign({ item: true }, { children: _jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) })) })))] }))] }));
26
26
  };
@@ -1,2 +1,2 @@
1
1
  import { WidgetProps } from '@rjsf/utils';
2
- export declare const SelectWidget: ({ id, label, value, disabled, name, placeholder, onChange, multiple, options, required, }: WidgetProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const SelectWidget: ({ id, label, value, disabled, name, placeholder, onChange, multiple, options, required, uiSchema, }: WidgetProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -9,11 +9,23 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
24
  import { FormControl, Autocomplete, TextField, InputLabel, } from '@mui/material';
14
25
  import { isEqual } from 'lodash';
15
26
  export var SelectWidget = function (_a) {
16
- var id = _a.id, label = _a.label, value = _a.value, disabled = _a.disabled, name = _a.name, placeholder = _a.placeholder, onChange = _a.onChange, multiple = _a.multiple, options = _a.options, required = _a.required;
27
+ var id = _a.id, label = _a.label, value = _a.value, disabled = _a.disabled, name = _a.name, placeholder = _a.placeholder, onChange = _a.onChange, multiple = _a.multiple, options = _a.options, required = _a.required, uiSchema = _a.uiSchema;
28
+ var _b = uiSchema !== null && uiSchema !== void 0 ? uiSchema : {}, inputProps = _b.inputProps, otherUiSchema = __rest(_b, ["inputProps"]);
17
29
  var enumOptions = options.enumOptions, enumDisabled = options.enumDisabled;
18
30
  if (!Array.isArray(enumOptions)) {
19
31
  return null;
@@ -56,7 +68,7 @@ export var SelectWidget = function (_a) {
56
68
  return Array.isArray(option)
57
69
  ? option.some(function (o) { return o.disabled; })
58
70
  : option.disabled;
59
- }, renderInput: function (params) { return _jsx(TextField, __assign({}, params)); }, onChange: function (_event, selected) {
71
+ }, renderInput: function (params) { return (_jsx(TextField, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), (inputProps !== null && inputProps !== void 0 ? inputProps : {})) }))); }, onChange: function (_event, selected) {
60
72
  if (Array.isArray(selected)) {
61
73
  var val = selected
62
74
  .map(function (item) {
@@ -73,5 +85,5 @@ export var SelectWidget = function (_a) {
73
85
  return onChange(selected.value === '' ? options.emptyValue : selected.value);
74
86
  }
75
87
  return onChange(options.emptyValue);
76
- }, disableClearable: true }))] }));
88
+ }, disableClearable: true }, otherUiSchema))] }));
77
89
  };
@@ -3,7 +3,7 @@ import { FormProps as RjsFormProps } from '@rjsf/core';
3
3
  import { BoxProps, ButtonProps } from '@mui/material';
4
4
  import { IChangeEvent } from '@rjsf/core';
5
5
  import { FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation } from '@rjsf/utils';
6
- export type { IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, };
6
+ import { Templates } from '@rjsf/mui';
7
7
  export interface RJSFormProps extends Omit<RjsFormProps, 'validator' | 'onFocus' | 'onBlur'>, Pick<BoxProps, 'sx' | 'onFocus' | 'onBlur'>, Partial<Pick<RjsFormProps, 'validator'>> {
8
8
  /** If true, do not display the form submit button */
9
9
  hideSubmitButton?: boolean;
@@ -13,3 +13,5 @@ export interface RJSFormProps extends Omit<RjsFormProps, 'validator' | 'onFocus'
13
13
  actionButtons?: ButtonProps[];
14
14
  }
15
15
  export declare const RJSForm: React.FC<React.PropsWithChildren<RJSFormProps>>;
16
+ export type { IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, };
17
+ export { Templates };
@@ -27,8 +27,9 @@ import { Box, Button, styled } from '@mui/material';
27
27
  import { PasswordWidget } from './Widgets/PasswordWidget';
28
28
  import { SelectWidget } from './Widgets/SelectWidget';
29
29
  import { FileWidget } from './Widgets/FileWidget';
30
- import { Fragment } from 'react';
30
+ import { Fragment, forwardRef } from 'react';
31
31
  import { ObjectFieldTemplate } from './FieldTemplates/ObjectFieldTemplate';
32
+ import { Templates } from '@rjsf/mui';
32
33
  var internalWidgets = {
33
34
  PasswordWidget: PasswordWidget,
34
35
  SelectWidget: SelectWidget,
@@ -40,10 +41,11 @@ var FormWrapper = styled('div')({
40
41
  boxShadow: 'none',
41
42
  },
42
43
  });
43
- export var RJSForm = function (_a) {
44
- var hideSubmitButton = _a.hideSubmitButton, submitButtonProps = _a.submitButtonProps, actionButtons = _a.actionButtons, _b = _a.validator, validator = _b === void 0 ? ajvValidator : _b, widgets = _a.widgets, children = _a.children, ref = _a.ref, sx = _a.sx, onFocus = _a.onFocus, onBlur = _a.onBlur, templates = _a.templates, otherProps = __rest(_a, ["hideSubmitButton", "submitButtonProps", "actionButtons", "validator", "widgets", "children", "ref", "sx", "onFocus", "onBlur", "templates"]);
44
+ export var RJSForm = forwardRef(function (_a, ref) {
45
+ var hideSubmitButton = _a.hideSubmitButton, submitButtonProps = _a.submitButtonProps, actionButtons = _a.actionButtons, _b = _a.validator, validator = _b === void 0 ? ajvValidator : _b, widgets = _a.widgets, children = _a.children, sx = _a.sx, onFocus = _a.onFocus, onBlur = _a.onBlur, templates = _a.templates, otherProps = __rest(_a, ["hideSubmitButton", "submitButtonProps", "actionButtons", "validator", "widgets", "children", "sx", "onFocus", "onBlur", "templates"]);
45
46
  // paddingY is resolving an outline glitch that is truncated when inside a container.
46
47
  return (_jsx(FormWrapper, { children: _jsx(Box, __assign({ sx: __assign({ paddingY: '1px' }, sx), onFocus: onFocus, onBlur: onBlur }, { children: _jsxs(Form, __assign({ ref: ref, validator: validator, showErrorList: false, widgets: __assign(__assign({}, internalWidgets), (widgets || {})), templates: __assign({ ObjectFieldTemplate: ObjectFieldTemplate }, templates) }, otherProps, { children: [hideSubmitButton && _jsx(Fragment, {}), actionButtons === null || actionButtons === void 0 ? void 0 : actionButtons.map(function (buttonProps) { return (_jsx(Button, __assign({}, buttonProps))); }), !hideSubmitButton && (_jsx(Button, __assign({ children: 'Submit',
47
48
  // TODO: remove once we migrate buttons
48
49
  disableRipple: true }, submitButtonProps, { color: "customBlue", variant: "contained", type: "submit" }))), children] })) })) }));
49
- };
50
+ });
51
+ export { Templates };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export type { Theme } from './theme';
1
2
  export { theme } from './theme';
2
3
  export type { AnimatedTextProps } from './components/AnimatedText';
3
4
  export { AnimatedText } from './components/AnimatedText';
@@ -6,7 +7,7 @@ export { ButtonWithTracking } from './components/ButtonWithTracking';
6
7
  export { Code } from './components/Code';
7
8
  export type { CookiesBannerProps, Cookie } from './components/CookiesBanner';
8
9
  export type { FormProps as RjsCoreFormProps } from '@rjsf/core';
9
- export { RJSForm } from './components/Form';
10
+ export { RJSForm, Templates as RjsfTemplates } from './components/Form';
10
11
  export type { RJSFormProps, IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, } from './components/Form';
11
12
  export type { OnFileReadParams, OnFileReadSuccessParams, OnFileReadErrorParams, } from './components/Form/Widgets/FileWidget';
12
13
  export { CookiesBanner } from './components/CookiesBanner';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { theme } from './theme';
2
2
  export { AnimatedText } from './components/AnimatedText';
3
3
  export { ButtonWithTracking } from './components/ButtonWithTracking';
4
4
  export { Code } from './components/Code';
5
- export { RJSForm } from './components/Form';
5
+ export { RJSForm, Templates as RjsfTemplates } from './components/Form';
6
6
  export { CookiesBanner } from './components/CookiesBanner';
7
7
  export { CollapsedList } from './components/CollapsedList';
8
8
  export { CustomHelmet } from './components/CustomHelmet';
package/dist/theme.d.ts CHANGED
@@ -134,4 +134,5 @@ declare module '@mui/material/SvgIcon' {
134
134
  }
135
135
  }
136
136
  export declare const theme: import("@mui/material").Theme;
137
+ export type Theme = typeof theme;
137
138
  export {};
package/dist/theme.js CHANGED
@@ -347,6 +347,12 @@ export var theme = createTheme({
347
347
  // set the fieldset > legend max-width to 100%, and this invalidate the notched: false rule for some inputs.
348
348
  maxWidth: 0,
349
349
  },
350
+ fieldset: {
351
+ borderColor: color.border.value,
352
+ '&:hover': {
353
+ borderColor: color.border.strong.value,
354
+ },
355
+ },
350
356
  },
351
357
  },
352
358
  },
@@ -10,7 +10,7 @@ export var ObjectFieldTemplate = function (props) {
10
10
  var DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, uiOptions);
11
11
  var AddButton = registry.templates.ButtonTemplates.AddButton;
12
12
  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, __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(function (element, index) {
13
- var _a, _b;
14
- return element.hidden ? (element.content) : (_jsx(Grid, __assign({ item: true, xs: 12, style: { marginBottom: '10px' } }, ((_b = (_a = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema['ui:grid']) === null || _a === void 0 ? void 0 : _a.item) !== null && _b !== void 0 ? _b : {}), { children: element.content }), index));
13
+ var _a, _b, _c, _d, _e, _f, _g;
14
+ return element.hidden ? (element.content) : (_jsx(Grid, __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));
15
15
  }), canExpand(schema, uiSchema, formData) && (_jsx(Grid, __assign({ container: true, justifyContent: "flex-end" }, { children: _jsx(Grid, __assign({ item: true }, { children: _jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) })) })))] }))] }));
16
16
  };
@@ -1,2 +1,2 @@
1
1
  import { WidgetProps } from '@rjsf/utils';
2
- export declare const SelectWidget: ({ id, label, value, disabled, name, placeholder, onChange, multiple, options, required, }: WidgetProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const SelectWidget: ({ id, label, value, disabled, name, placeholder, onChange, multiple, options, required, uiSchema, }: WidgetProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,10 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __rest } from "tslib";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { FormControl, Autocomplete, TextField, InputLabel, } from '@mui/material';
4
4
  import { isEqual } from 'lodash';
5
5
  export var SelectWidget = function (_a) {
6
- var id = _a.id, label = _a.label, value = _a.value, disabled = _a.disabled, name = _a.name, placeholder = _a.placeholder, onChange = _a.onChange, multiple = _a.multiple, options = _a.options, required = _a.required;
6
+ var id = _a.id, label = _a.label, value = _a.value, disabled = _a.disabled, name = _a.name, placeholder = _a.placeholder, onChange = _a.onChange, multiple = _a.multiple, options = _a.options, required = _a.required, uiSchema = _a.uiSchema;
7
+ var _b = uiSchema !== null && uiSchema !== void 0 ? uiSchema : {}, inputProps = _b.inputProps, otherUiSchema = __rest(_b, ["inputProps"]);
7
8
  var enumOptions = options.enumOptions, enumDisabled = options.enumDisabled;
8
9
  if (!Array.isArray(enumOptions)) {
9
10
  return null;
@@ -46,7 +47,7 @@ export var SelectWidget = function (_a) {
46
47
  return Array.isArray(option)
47
48
  ? option.some(function (o) { return o.disabled; })
48
49
  : option.disabled;
49
- }, renderInput: function (params) { return _jsx(TextField, __assign({}, params)); }, onChange: function (_event, selected) {
50
+ }, renderInput: function (params) { return (_jsx(TextField, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), (inputProps !== null && inputProps !== void 0 ? inputProps : {})) }))); }, onChange: function (_event, selected) {
50
51
  if (Array.isArray(selected)) {
51
52
  var val = selected
52
53
  .map(function (item) {
@@ -63,5 +64,5 @@ export var SelectWidget = function (_a) {
63
64
  return onChange(selected.value === '' ? options.emptyValue : selected.value);
64
65
  }
65
66
  return onChange(options.emptyValue);
66
- }, disableClearable: true }))] }));
67
+ }, disableClearable: true }, otherUiSchema))] }));
67
68
  };
@@ -3,7 +3,7 @@ import { FormProps as RjsFormProps } from '@rjsf/core';
3
3
  import { BoxProps, ButtonProps } from '@mui/material';
4
4
  import { IChangeEvent } from '@rjsf/core';
5
5
  import { FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation } from '@rjsf/utils';
6
- export type { IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, };
6
+ import { Templates } from '@rjsf/mui';
7
7
  export interface RJSFormProps extends Omit<RjsFormProps, 'validator' | 'onFocus' | 'onBlur'>, Pick<BoxProps, 'sx' | 'onFocus' | 'onBlur'>, Partial<Pick<RjsFormProps, 'validator'>> {
8
8
  /** If true, do not display the form submit button */
9
9
  hideSubmitButton?: boolean;
@@ -13,3 +13,5 @@ export interface RJSFormProps extends Omit<RjsFormProps, 'validator' | 'onFocus'
13
13
  actionButtons?: ButtonProps[];
14
14
  }
15
15
  export declare const RJSForm: React.FC<React.PropsWithChildren<RJSFormProps>>;
16
+ export type { IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, };
17
+ export { Templates };
@@ -6,8 +6,9 @@ import { Box, Button, styled } from '@mui/material';
6
6
  import { PasswordWidget } from './Widgets/PasswordWidget';
7
7
  import { SelectWidget } from './Widgets/SelectWidget';
8
8
  import { FileWidget } from './Widgets/FileWidget';
9
- import { Fragment } from 'react';
9
+ import { Fragment, forwardRef } from 'react';
10
10
  import { ObjectFieldTemplate } from './FieldTemplates/ObjectFieldTemplate';
11
+ import { Templates } from '@rjsf/mui';
11
12
  var internalWidgets = {
12
13
  PasswordWidget: PasswordWidget,
13
14
  SelectWidget: SelectWidget,
@@ -19,10 +20,11 @@ var FormWrapper = styled('div')({
19
20
  boxShadow: 'none',
20
21
  },
21
22
  });
22
- export var RJSForm = function (_a) {
23
- var hideSubmitButton = _a.hideSubmitButton, submitButtonProps = _a.submitButtonProps, actionButtons = _a.actionButtons, _b = _a.validator, validator = _b === void 0 ? ajvValidator : _b, widgets = _a.widgets, children = _a.children, ref = _a.ref, sx = _a.sx, onFocus = _a.onFocus, onBlur = _a.onBlur, templates = _a.templates, otherProps = __rest(_a, ["hideSubmitButton", "submitButtonProps", "actionButtons", "validator", "widgets", "children", "ref", "sx", "onFocus", "onBlur", "templates"]);
23
+ export var RJSForm = forwardRef(function (_a, ref) {
24
+ var hideSubmitButton = _a.hideSubmitButton, submitButtonProps = _a.submitButtonProps, actionButtons = _a.actionButtons, _b = _a.validator, validator = _b === void 0 ? ajvValidator : _b, widgets = _a.widgets, children = _a.children, sx = _a.sx, onFocus = _a.onFocus, onBlur = _a.onBlur, templates = _a.templates, otherProps = __rest(_a, ["hideSubmitButton", "submitButtonProps", "actionButtons", "validator", "widgets", "children", "sx", "onFocus", "onBlur", "templates"]);
24
25
  // paddingY is resolving an outline glitch that is truncated when inside a container.
25
26
  return (_jsx(FormWrapper, { children: _jsx(Box, __assign({ sx: __assign({ paddingY: '1px' }, sx), onFocus: onFocus, onBlur: onBlur }, { children: _jsxs(Form, __assign({ ref: ref, validator: validator, showErrorList: false, widgets: __assign(__assign({}, internalWidgets), (widgets || {})), templates: __assign({ ObjectFieldTemplate: ObjectFieldTemplate }, templates) }, otherProps, { children: [hideSubmitButton && _jsx(Fragment, {}), actionButtons === null || actionButtons === void 0 ? void 0 : actionButtons.map(function (buttonProps) { return (_jsx(Button, __assign({}, buttonProps))); }), !hideSubmitButton && (_jsx(Button, __assign({ children: 'Submit',
26
27
  // TODO: remove once we migrate buttons
27
28
  disableRipple: true }, submitButtonProps, { color: "customBlue", variant: "contained", type: "submit" }))), children] })) })) }));
28
- };
29
+ });
30
+ export { Templates };
@@ -1,3 +1,4 @@
1
+ export type { Theme } from './theme';
1
2
  export { theme } from './theme';
2
3
  export type { AnimatedTextProps } from './components/AnimatedText';
3
4
  export { AnimatedText } from './components/AnimatedText';
@@ -6,7 +7,7 @@ export { ButtonWithTracking } from './components/ButtonWithTracking';
6
7
  export { Code } from './components/Code';
7
8
  export type { CookiesBannerProps, Cookie } from './components/CookiesBanner';
8
9
  export type { FormProps as RjsCoreFormProps } from '@rjsf/core';
9
- export { RJSForm } from './components/Form';
10
+ export { RJSForm, Templates as RjsfTemplates } from './components/Form';
10
11
  export type { RJSFormProps, IChangeEvent, FieldTemplateProps, WidgetProps, RJSFValidationError, UiSchema, FormValidation, } from './components/Form';
11
12
  export type { OnFileReadParams, OnFileReadSuccessParams, OnFileReadErrorParams, } from './components/Form/Widgets/FileWidget';
12
13
  export { CookiesBanner } from './components/CookiesBanner';
@@ -2,7 +2,7 @@ export { theme } from './theme';
2
2
  export { AnimatedText } from './components/AnimatedText';
3
3
  export { ButtonWithTracking } from './components/ButtonWithTracking';
4
4
  export { Code } from './components/Code';
5
- export { RJSForm } from './components/Form';
5
+ export { RJSForm, Templates as RjsfTemplates } from './components/Form';
6
6
  export { CookiesBanner } from './components/CookiesBanner';
7
7
  export { CollapsedList } from './components/CollapsedList';
8
8
  export { CustomHelmet } from './components/CustomHelmet';
@@ -134,4 +134,5 @@ declare module '@mui/material/SvgIcon' {
134
134
  }
135
135
  }
136
136
  export declare const theme: import("@mui/material").Theme;
137
+ export type Theme = typeof theme;
137
138
  export {};
@@ -347,6 +347,12 @@ export var theme = createTheme({
347
347
  // set the fieldset > legend max-width to 100%, and this invalidate the notched: false rule for some inputs.
348
348
  maxWidth: 0,
349
349
  },
350
+ fieldset: {
351
+ borderColor: color.border.value,
352
+ '&:hover': {
353
+ borderColor: color.border.strong.value,
354
+ },
355
+ },
350
356
  },
351
357
  },
352
358
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist_esm5/index.js",
6
6
  "sideEffects": false,
@@ -112,6 +112,6 @@
112
112
  },
113
113
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
114
114
  "versionist": {
115
- "publishedAt": "2023-12-21T13:49:52.265Z"
115
+ "publishedAt": "2023-12-28T12:58:31.044Z"
116
116
  }
117
117
  }