@opengeoweb/form-fields 2.1.0 → 2.1.4

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.
package/README.md CHANGED
@@ -9,3 +9,18 @@ This library was generated with [Nx](https://nx.dev).
9
9
  ## Running unit tests
10
10
 
11
11
  Run `nx test form-fields` to execute the unit tests via [Jest](https://jestjs.io).
12
+
13
+ ## Image snapshot testing
14
+
15
+ The current regex filters on storyname takeSnapshot. So to add a story to the snapshot tests, simply add (takeSnapshot) to it's storyName and run the snapshot tests.
16
+
17
+ [Read more about snapshot testing](https://gitlab.com/opengeoweb/opengeoweb/#image-snapshot-testing)
18
+
19
+ ### Running snapshot tests and updating snapshots locally
20
+
21
+ 1. You need to have [docker](https://docs.docker.com/get-docker/) installed and running.
22
+ 2. Start Chromium by running: `npm run start-chromium`. (This will start a docker container with chromium, to run snapshot tests in. We need this to make sure everyone gets the same snapshot results.)
23
+ 3. Run the snapshot tests: `npm run test:image-snap-form-fields`. This will first create a new static storybook build and then run the tests.
24
+ 4. If a snapshot test fails, you can find and inspect the differences in `libs/form-fields/src/lib/storyshots/__image_snapshots__/__diff_output__/`.
25
+ 5. To update the snapshots, run `npm run test:image-snap-form-fields-update`. Snapshots are saved under `libs/form-fields/src/lib/storyshots/__image_snapshots__/`. Make sure to commit the new snapshots.
26
+ 6. Stop Chromium by running: `npm run stop-chromium`.
@@ -1,11 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { FormControl, FormHelperText, InputLabel, Select, RadioGroup, TextField, InputAdornment } from '@material-ui/core';
3
+ import { FormControl, FormHelperText, InputLabel, Select, RadioGroup, TextField, InputAdornment } from '@mui/material';
4
4
  import { useFormContext, Controller, useForm, FormProvider } from 'react-hook-form';
5
5
  import moment from 'moment';
6
6
  import { isEqual } from 'lodash';
7
- import { KeyboardDateTimePicker } from '@material-ui/pickers';
8
7
  import moment$1 from 'moment-timezone';
8
+ import { DateTimePicker } from '@mui/lab';
9
+ import AdapterMoment from '@mui/lab/AdapterMoment';
10
+ import LocalizationProvider from '@mui/lab/LocalizationProvider';
9
11
 
10
12
  /*! *****************************************************************************
11
13
  Copyright (c) Microsoft Corporation.
@@ -398,7 +400,7 @@ var ReactHookFormRadioGroup = function ReactHookFormRadioGroup(_a) {
398
400
 
399
401
  _onChange(changeEvent, changeEvent.target.value);
400
402
  },
401
- innerRef: inputRef,
403
+ ref: inputRef,
402
404
  name: name
403
405
  }, otherProps), children);
404
406
  },
@@ -684,28 +686,24 @@ var ReactHookKeyboardDateTimePicker = function ReactHookKeyboardDateTimePicker(_
684
686
  className: className
685
687
  }, /*#__PURE__*/React.createElement(Controller, {
686
688
  render: function render(_props) {
687
- return /*#__PURE__*/React.createElement(KeyboardDateTimePicker, Object.assign({
688
- autoOk: true,
689
- name: name,
689
+ return /*#__PURE__*/React.createElement(DateTimePicker, Object.assign({
690
+ desktopModeMediaQuery: "@media (min-width: 720px)",
690
691
  ampm: false,
691
- format: format,
692
+ mask: "____/__/__ __:__",
693
+ inputFormat: format,
692
694
  label: label,
693
695
  value: _props.value,
694
696
  openTo: openTo,
695
- error: !!errors,
696
697
  disabled: disabled,
697
698
  onChange: function onChange(value) {
698
699
  _props.onChange(getFormattedValue(value));
699
700
 
700
701
  _onChange(getFormattedValue(value));
701
702
  },
702
- invalidDateMessage: null,
703
- inputVariant: "filled",
704
703
  inputRef: inputRef,
705
704
  InputAdornmentProps: {
706
705
  position: 'start'
707
706
  },
708
- helperText: helperText,
709
707
  InputProps: {
710
708
  endAdornment: /*#__PURE__*/React.createElement(InputAdornment, {
711
709
  style: {
@@ -713,6 +711,24 @@ var ReactHookKeyboardDateTimePicker = function ReactHookKeyboardDateTimePicker(_
713
711
  },
714
712
  position: "end"
715
713
  }, "UTC")
714
+ },
715
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
716
+ // @ts-ignore
717
+ // eslint-disable-next-line react/jsx-no-duplicate-props
718
+ inputProps: disabled ? {
719
+ placeholder: ''
720
+ } : undefined,
721
+ renderInput: function renderInput(_a) {
722
+ _a.error;
723
+ var props = __rest(_a, ["error"]);
724
+
725
+ return /*#__PURE__*/React.createElement(TextField, Object.assign({
726
+ helperText: helperText,
727
+ error: !!errors,
728
+ name: name,
729
+ "data-testid": otherProps['data-testid'],
730
+ variant: "filled"
731
+ }, props));
716
732
  }
717
733
  }, otherProps));
718
734
  },
@@ -760,6 +776,17 @@ var ReactHookFormProvider = function ReactHookFormProvider(_ref) {
760
776
  return /*#__PURE__*/React__default.createElement(FormProvider, Object.assign({}, formMethods), children);
761
777
  };
762
778
 
779
+ var ReactHookFormProviderWrapper = function ReactHookFormProviderWrapper(_ref2) {
780
+ var children = _ref2.children,
781
+ _ref2$options = _ref2.options,
782
+ options = _ref2$options === void 0 ? defaultFormOptions : _ref2$options;
783
+ return /*#__PURE__*/React__default.createElement(LocalizationProvider, {
784
+ dateAdapter: AdapterMoment
785
+ }, /*#__PURE__*/React__default.createElement(ReactHookFormProvider, {
786
+ options: options
787
+ }, children));
788
+ };
789
+
763
790
  /* *
764
791
  * Licensed under the Apache License, Version 2.0 (the "License");
765
792
  * you may not use this file except in compliance with the License.
@@ -799,4 +826,4 @@ var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_ref) {
799
826
  });
800
827
  };
801
828
 
802
- export { ReactHookKeyboardDateTimePicker as ReactHookFormDateTime, ReactHookFormFormControl, ReactHookFormHiddenInput, ReactHookFormNumberField, ReactHookFormProvider, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormTextField, containsNoCommas, defaultFormOptions, errorMessages, getDeepProperty, hasIntersectionWithFIR, hasMaxFeaturePoints, hasMulitpleIntersections, isAfter, isBefore, isBetween, isEmpty, isGeometryDirty, isInteger, isLatitude, isLongitude, isMaximumOneDrawing, isNonOrBothCoordinates, isValidDate, isValidGeoJsonCoordinates, isValidMax, isValidMin, isXHoursAfter, isXHoursBefore };
829
+ export { ReactHookKeyboardDateTimePicker as ReactHookFormDateTime, ReactHookFormFormControl, ReactHookFormHiddenInput, ReactHookFormNumberField, ReactHookFormProviderWrapper as ReactHookFormProvider, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormTextField, containsNoCommas, defaultFormOptions, errorMessages, getDeepProperty, hasIntersectionWithFIR, hasMaxFeaturePoints, hasMulitpleIntersections, isAfter, isBefore, isBetween, isEmpty, isGeometryDirty, isInteger, isLatitude, isLongitude, isMaximumOneDrawing, isNonOrBothCoordinates, isValidDate, isValidGeoJsonCoordinates, isValidMax, isValidMin, isXHoursAfter, isXHoursBefore };
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@material-ui/core'), require('react-hook-form'), require('moment'), require('lodash'), require('@material-ui/pickers'), require('moment-timezone')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', '@material-ui/core', 'react-hook-form', 'moment', 'lodash', '@material-ui/pickers', 'moment-timezone'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FormFields = {}, global.React, global.core, global.reactHookForm, global.moment, global.lodash, global.pickers, global.moment$1));
5
- })(this, (function (exports, React, core, reactHookForm, moment, lodash, pickers, moment$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@mui/material'), require('react-hook-form'), require('moment'), require('lodash'), require('moment-timezone'), require('@mui/lab'), require('@mui/lab/AdapterMoment'), require('@mui/lab/LocalizationProvider')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@mui/material', 'react-hook-form', 'moment', 'lodash', 'moment-timezone', '@mui/lab', '@mui/lab/AdapterMoment', '@mui/lab/LocalizationProvider'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FormFields = {}, global.React, global.material, global.reactHookForm, global.moment, global.lodash, global.moment$1, global.lab, global.AdapterMoment, global.LocalizationProvider));
5
+ })(this, (function (exports, React, material, reactHookForm, moment, lodash, moment$1, lab, AdapterMoment, LocalizationProvider) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -28,6 +28,8 @@
28
28
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
29
29
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
30
30
  var moment__default$1 = /*#__PURE__*/_interopDefaultLegacy(moment$1);
31
+ var AdapterMoment__default = /*#__PURE__*/_interopDefaultLegacy(AdapterMoment);
32
+ var LocalizationProvider__default = /*#__PURE__*/_interopDefaultLegacy(LocalizationProvider);
31
33
 
32
34
  /*! *****************************************************************************
33
35
  Copyright (c) Microsoft Corporation.
@@ -84,10 +86,14 @@
84
86
  return ar;
85
87
  }
86
88
 
87
- function __spreadArray(to, from) {
88
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
89
- to[j] = from[i];
90
- return to;
89
+ function __spreadArray(to, from, pack) {
90
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
91
+ if (ar || !(i in from)) {
92
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
93
+ ar[i] = from[i];
94
+ }
95
+ }
96
+ return to.concat(ar || Array.prototype.slice.call(from));
91
97
  }
92
98
 
93
99
  /* *
@@ -347,11 +353,11 @@
347
353
  errors = _a.errors,
348
354
  props = __rest(_a, ["children", "errors"]);
349
355
 
350
- return /*#__PURE__*/React__namespace.createElement(core.FormControl, __assign({
356
+ return /*#__PURE__*/React__namespace.createElement(material.FormControl, __assign({
351
357
  fullWidth: true
352
358
  }, props, {
353
359
  error: !!errors
354
- }), children, errors && /*#__PURE__*/React__namespace.createElement(core.FormHelperText, {
360
+ }), children, errors && /*#__PURE__*/React__namespace.createElement(material.FormHelperText, {
355
361
  variant: "filled"
356
362
  }, errors.message || errorMessages[errors.type]));
357
363
  };
@@ -391,12 +397,12 @@
391
397
  className: className,
392
398
  disabled: disabled,
393
399
  errors: errors
394
- }, /*#__PURE__*/React__namespace.createElement(core.InputLabel, {
400
+ }, /*#__PURE__*/React__namespace.createElement(material.InputLabel, {
395
401
  variant: "filled",
396
402
  id: labelId
397
403
  }, label), /*#__PURE__*/React__namespace.createElement(reactHookForm.Controller, {
398
404
  render: function render(_props) {
399
- return /*#__PURE__*/React__namespace.createElement(core.Select, __assign({
405
+ return /*#__PURE__*/React__namespace.createElement(material.Select, __assign({
400
406
  labelId: labelId,
401
407
  label: label,
402
408
  inputRef: inputRef,
@@ -450,18 +456,18 @@
450
456
  return /*#__PURE__*/React__namespace.createElement(ReactHookFormFormControl, {
451
457
  disabled: disabled,
452
458
  errors: errors
453
- }, /*#__PURE__*/React__namespace.createElement(core.InputLabel, {
459
+ }, /*#__PURE__*/React__namespace.createElement(material.InputLabel, {
454
460
  id: labelId
455
461
  }, label), /*#__PURE__*/React__namespace.createElement(reactHookForm.Controller, {
456
462
  render: function render(_props) {
457
- return /*#__PURE__*/React__namespace.createElement(core.RadioGroup, __assign({
463
+ return /*#__PURE__*/React__namespace.createElement(material.RadioGroup, __assign({
458
464
  value: _props.value,
459
465
  onChange: function onChange(changeEvent) {
460
466
  _props.onChange(changeEvent.target.value);
461
467
 
462
468
  _onChange(changeEvent, changeEvent.target.value);
463
469
  },
464
- innerRef: inputRef,
470
+ ref: inputRef,
465
471
  name: name
466
472
  }, otherProps), children);
467
473
  },
@@ -522,7 +528,7 @@
522
528
  errors: errors
523
529
  }, /*#__PURE__*/React__namespace.createElement(reactHookForm.Controller, {
524
530
  render: function render(_props) {
525
- return /*#__PURE__*/React__namespace.createElement(core.TextField, __assign({
531
+ return /*#__PURE__*/React__namespace.createElement(material.TextField, __assign({
526
532
  label: label,
527
533
  style: otherProps.multiline ? styles.textEditor : {},
528
534
  error: !!errors,
@@ -643,7 +649,7 @@
643
649
  errors: errors
644
650
  }, /*#__PURE__*/React__namespace.createElement(reactHookForm.Controller, {
645
651
  render: function render(_props) {
646
- return /*#__PURE__*/React__namespace.createElement(core.TextField, __assign({
652
+ return /*#__PURE__*/React__namespace.createElement(material.TextField, __assign({
647
653
  label: label,
648
654
  error: !!errors,
649
655
  helperText: helperText,
@@ -720,35 +726,49 @@
720
726
  className: className
721
727
  }, /*#__PURE__*/React__namespace.createElement(reactHookForm.Controller, {
722
728
  render: function render(_props) {
723
- return /*#__PURE__*/React__namespace.createElement(pickers.KeyboardDateTimePicker, __assign({
724
- autoOk: true,
725
- name: name,
729
+ return /*#__PURE__*/React__namespace.createElement(lab.DateTimePicker, __assign({
730
+ desktopModeMediaQuery: "@media (min-width: 720px)",
726
731
  ampm: false,
727
- format: format,
732
+ mask: "____/__/__ __:__",
733
+ inputFormat: format,
728
734
  label: label,
729
735
  value: _props.value,
730
736
  openTo: openTo,
731
- error: !!errors,
732
737
  disabled: disabled,
733
738
  onChange: function onChange(value) {
734
739
  _props.onChange(getFormattedValue(value));
735
740
 
736
741
  _onChange(getFormattedValue(value));
737
742
  },
738
- invalidDateMessage: null,
739
- inputVariant: "filled",
740
743
  inputRef: inputRef,
741
744
  InputAdornmentProps: {
742
745
  position: 'start'
743
746
  },
744
- helperText: helperText,
745
747
  InputProps: {
746
- endAdornment: /*#__PURE__*/React__namespace.createElement(core.InputAdornment, {
748
+ endAdornment: /*#__PURE__*/React__namespace.createElement(material.InputAdornment, {
747
749
  style: {
748
750
  paddingTop: '16px'
749
751
  },
750
752
  position: "end"
751
753
  }, "UTC")
754
+ },
755
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
756
+ // @ts-ignore
757
+ // eslint-disable-next-line react/jsx-no-duplicate-props
758
+ inputProps: disabled ? {
759
+ placeholder: ''
760
+ } : undefined,
761
+ renderInput: function renderInput(_a) {
762
+ _a.error;
763
+ var props = __rest(_a, ["error"]);
764
+
765
+ return /*#__PURE__*/React__namespace.createElement(material.TextField, __assign({
766
+ helperText: helperText,
767
+ error: !!errors,
768
+ name: name,
769
+ "data-testid": otherProps['data-testid'],
770
+ variant: "filled"
771
+ }, props));
752
772
  }
753
773
  }, otherProps));
754
774
  },
@@ -780,6 +800,17 @@
780
800
  return /*#__PURE__*/React__default["default"].createElement(reactHookForm.FormProvider, __assign({}, formMethods), children);
781
801
  };
782
802
 
803
+ var ReactHookFormProviderWrapper = function ReactHookFormProviderWrapper(_a) {
804
+ var children = _a.children,
805
+ _b = _a.options,
806
+ options = _b === void 0 ? defaultFormOptions : _b;
807
+ return /*#__PURE__*/React__default["default"].createElement(LocalizationProvider__default["default"], {
808
+ dateAdapter: AdapterMoment__default["default"]
809
+ }, /*#__PURE__*/React__default["default"].createElement(ReactHookFormProvider, {
810
+ options: options
811
+ }, children));
812
+ };
813
+
783
814
  var ReactHookFormHiddenInput = function ReactHookFormHiddenInput(_a) {
784
815
  var name = _a.name,
785
816
  _b = _a.defaultValue,
@@ -803,7 +834,7 @@
803
834
  exports.ReactHookFormFormControl = ReactHookFormFormControl;
804
835
  exports.ReactHookFormHiddenInput = ReactHookFormHiddenInput;
805
836
  exports.ReactHookFormNumberField = ReactHookFormNumberField;
806
- exports.ReactHookFormProvider = ReactHookFormProvider;
837
+ exports.ReactHookFormProvider = ReactHookFormProviderWrapper;
807
838
  exports.ReactHookFormRadioGroup = ReactHookFormRadioGroup;
808
839
  exports.ReactHookFormSelect = ReactHookFormSelect;
809
840
  exports.ReactHookFormTextField = ReactHookFormTextField;
@@ -1,13 +1,17 @@
1
1
  import * as React from 'react';
2
- import { KeyboardDateTimePickerProps } from '@material-ui/pickers';
3
2
  import { Moment } from 'moment-timezone';
3
+ import { DateTimePickerProps } from '@mui/lab';
4
4
  import { Rules } from './types';
5
5
  export declare const getFormattedValue: (value: Moment | string) => string | Moment;
6
- declare type ReactHookKeyboardDateTimePickerProps = Partial<KeyboardDateTimePickerProps> & {
6
+ declare type ReactHookKeyboardDateTimePickerProps = Partial<DateTimePickerProps> & {
7
7
  rules: Rules;
8
8
  defaultNullValue?: string;
9
9
  value?: string;
10
10
  onChange?: (value: any) => void;
11
+ name: string;
12
+ helperText?: string;
13
+ label?: string;
14
+ format?: string;
11
15
  };
12
16
  declare const ReactHookKeyboardDateTimePicker: React.FC<ReactHookKeyboardDateTimePickerProps>;
13
17
  export default ReactHookKeyboardDateTimePicker;
@@ -4,3 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const DateTime: () => React.ReactElement;
7
+ export declare const DateTimeSnapshot: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FormControlProps } from '@material-ui/core';
2
+ import { FormControlProps } from '@mui/material';
3
3
  import { FieldErrors } from 'react-hook-form';
4
4
  interface ReactHookFormFormControlProps extends FormControlProps {
5
5
  errors?: FieldErrors;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { TextFieldProps } from '@material-ui/core';
2
+ import { TextFieldProps } from '@mui/material';
3
3
  import { Rules } from './types';
4
4
  declare type InputMode = 'numeric' | 'decimal';
5
5
  export declare const convertNumericInputValue: (value: string, inputMode: InputMode) => number | string;
@@ -4,3 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const NumberField: () => React.ReactElement;
7
+ export declare const NumberFieldSnapshotWrapped: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -16,5 +16,5 @@ export declare const defaultFormOptions: Partial<{
16
16
  shouldUnregister: boolean;
17
17
  criteriaMode: "all" | "firstError";
18
18
  }>;
19
- declare const ReactHookFormProvider: React.FC<WrapperProps>;
20
- export default ReactHookFormProvider;
19
+ declare const ReactHookFormProviderWrapper: React.FC<WrapperProps>;
20
+ export default ReactHookFormProviderWrapper;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RadioGroupProps } from '@material-ui/core';
2
+ import { RadioGroupProps } from '@mui/material';
3
3
  import { Rules } from './types';
4
4
  declare type ReactHookFormRadioGroupProps = Partial<RadioGroupProps> & {
5
5
  rules: Rules;
@@ -4,3 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const RadioGroup: () => React.ReactElement;
7
+ export declare const RadioGroupSnapshot: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SelectProps } from '@material-ui/core';
2
+ import { SelectProps } from '@mui/material';
3
3
  import { Rules } from './types';
4
4
  declare type ReactHookFormSelectProps = Partial<SelectProps> & {
5
5
  rules: Rules;
@@ -4,3 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Select: () => React.ReactElement;
7
+ export declare const SelectSnapshot: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { TextFieldProps } from '@material-ui/core';
2
+ import { TextFieldProps } from '@mui/material';
3
3
  import { Rules } from './types';
4
4
  export declare const convertTextInputValue: (value: string, inCapitals: boolean) => number | string;
5
5
  declare type ReactHookFormTextFieldProps = Partial<TextFieldProps> & {
@@ -4,3 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const TextField: () => React.ReactElement;
7
+ export declare const TextFieldSnapshot: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,4 +1,4 @@
1
- import { FormControlProps } from '@material-ui/core';
1
+ import { FormControlProps } from '@mui/material';
2
2
  import { RegisterOptions } from 'react-hook-form';
3
3
  export declare type Rules = RegisterOptions;
4
4
  export interface ReactHookFormInput extends FormControlProps {
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@opengeoweb/form-fields",
3
- "version": "2.1.0",
3
+ "version": "2.1.4",
4
4
  "description": "GeoWeb form-fields library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
- "main": "./form-fields.umd.js",
11
- "module": "./form-fields.esm.js",
10
+ "main": "./index.umd.js",
11
+ "module": "./index.esm.js",
12
12
  "typings": "./index.d.ts",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react-hook-form": "^6.12.1",
16
- "react": "16.14.0",
17
- "@material-ui/core": "^4.11.0",
18
- "@material-ui/pickers": "^3.2.10",
19
- "@date-io/moment": "^1.3.13",
16
+ "react": "^17.0.2",
17
+ "@mui/material": "^5.2.8",
20
18
  "moment": "^2.29.0",
21
- "@opengeoweb/theme": "2.1.0",
22
- "@material-ui/lab": "^4.0.0-alpha.56",
23
- "@material-ui/icons": "^4.9.1",
19
+ "@mui/icons-material": "^5.2.5",
20
+ "@opengeoweb/theme": "2.1.4",
21
+ "@mui/styles": "^5.2.3",
24
22
  "moment-timezone": "^0.5.31",
23
+ "@mui/lab": "^5.0.0-alpha.64",
25
24
  "lodash": "^4.17.20"
26
25
  }
27
26
  }