@nwon/react-mui-hook-form 2.0.0 → 2.0.2

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,4 +1,4 @@
1
- import { AnyObject } from "@nvon/baseline";
1
+ import { AnyObject } from "@nvon/baseline-cjs";
2
2
  import { FieldError, FormState } from "react-hook-form";
3
3
  /**
4
4
  * Get the field errors for a (possibly nested) field name.
@@ -1,6 +1,6 @@
1
1
  import { CheckBoxOutlineBlank, CheckBox } from '@mui/icons-material';
2
2
  import { FormHelperText, useFormControl, Checkbox, FormControl, Autocomplete, TextField, FormControlLabel, Box, InputLabel, OutlinedInput, FormLabel, RadioGroup, Radio, Select, MenuItem, Stack, Tooltip, ListSubheader, Slider, Switch, ToggleButton, ToggleButtonGroup, Typography } from '@mui/material';
3
- import { filterNoUndefinedNoNull, uppercaseFirstLetter, assertTruthy, objectHasKey, rethrow } from '@nvon/baseline';
3
+ import { filterNoUndefinedNoNull, uppercaseFirstLetter, assertTruthy, objectHasKey, rethrow } from '@nvon/baseline-cjs';
4
4
  import { useCallback, useMemo, useState, useEffect } from 'react';
5
5
  import { useFormContext, useWatch, Controller, useForm, FormProvider } from 'react-hook-form';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nwon/react-mui-hook-form",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "react",
@@ -26,43 +26,54 @@
26
26
  "author": "NWON",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@babel/core": "^7.21.3",
30
- "@babel/plugin-transform-runtime": "^7.21.0",
31
- "@babel/preset-flow": "^7.18.6",
32
- "@babel/preset-react": "^7.18.6",
33
- "@craco/craco": "^6.4.3",
29
+ "@babel/core": "^7.24.7",
30
+ "@babel/plugin-transform-runtime": "^7.24.7",
31
+ "@babel/preset-flow": "^7.24.7",
32
+ "@babel/preset-react": "^7.24.7",
33
+ "@babel/runtime": "^7.21.0",
34
+ "@craco/craco": "^7.1.0",
34
35
  "@nvon/eslint-config": "^1.21.1",
35
36
  "@nvon/node-toolbox": "^0.20.4",
36
- "@rollup/plugin-babel": "^6.0.3",
37
+ "@rollup/plugin-babel": "^6.0.4",
38
+ "@rollup/plugin-typescript": "^11.1.6",
37
39
  "@types/lodash-es": "^4.17.6",
38
40
  "@types/node": "^18.11.11",
39
41
  "@types/react-dom": ">=17.0.0",
40
42
  "@types/webpack": "^4.41.32",
41
43
  "cross-env": "^7.0.3",
42
44
  "npm": "^9.5.0",
43
- "react-scripts": "^4.0.3",
45
+ "react-scripts": "^5.0.1",
44
46
  "rimraf": "^3.0.2",
45
- "rollup": "^3.19.1",
46
- "rollup-plugin-sass": "^1.12.17",
47
- "rollup-plugin-typescript2": "^0.34.1",
48
- "typescript": "^4.9.5"
49
- },
50
- "dependencies": {
51
- "@babel/runtime": "^7.21.0",
52
- "@mui/icons-material": "^5.15.10",
53
- "@mui/lab": "^5.0.0-alpha.134",
54
- "@mui/material": "^5.15.5",
55
- "@mui/x-date-pickers": "^5.0.20",
47
+ "rollup": "^3.29.4",
48
+ "rollup-plugin-sass": "^1.13.1",
49
+ "typescript": "^4.9.5",
50
+ "@mui/icons-material": "^6.4.3",
51
+ "@mui/lab": "^6.0.0-beta.26",
52
+ "@mui/material": "^6.4.3",
53
+ "@mui/x-date-pickers": "^7.25.0",
56
54
  "@nvon/baseline": "^0.33.0",
57
55
  "dayjs": "^1.11.10",
58
56
  "i18next": "^22.4.10",
59
57
  "lodash-es": "^4.17.21",
60
58
  "react-hook-form": "^7.41.3",
61
- "react-i18next": "^11.18.5"
59
+ "react-i18next": "^11.18.5",
60
+ "react-number-format": "^5.4.2"
62
61
  },
62
+ "dependencies": {},
63
63
  "peerDependencies": {
64
64
  "react": ">=17.0.0",
65
- "react-dom": ">=17.0.0"
65
+ "react-dom": ">=17.0.0",
66
+ "@mui/icons-material": "^6.4.3",
67
+ "@mui/lab": "^6.0.0-beta.26",
68
+ "@mui/material": "^6.4.3",
69
+ "@mui/x-date-pickers": "^7.25.0",
70
+ "@nvon/baseline": "^0.33.0",
71
+ "dayjs": "^1.11.10",
72
+ "i18next": "^22.4.10",
73
+ "lodash-es": "^4.17.21",
74
+ "react-hook-form": "^7.41.3",
75
+ "react-i18next": "^11.18.5",
76
+ "react-number-format": "^5.4.2"
66
77
  },
67
78
  "browserslist": {
68
79
  "production": [