@ssplib/react-components 0.0.21 → 0.0.23

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.
@@ -62,6 +62,8 @@ function DatePicker(_a) {
62
62
  var _a;
63
63
  return (react_1.default.createElement(material_1.TextField, Object.assign({ size: 'small' }, params, context === null || context === void 0 ? void 0 : context.formRegister(name, {
64
64
  validate: (v, f) => {
65
+ if (!v)
66
+ v = '';
65
67
  if (v.length <= 0 && required)
66
68
  return 'Este campo é obrigatório';
67
69
  if (v.length < 10 && required)
@@ -47,6 +47,8 @@ function TimePicker({ name, required = false, title, xs = 12, sm, md }) {
47
47
  var _a;
48
48
  return (react_1.default.createElement(material_1.TextField, Object.assign({ size: 'small' }, params, context === null || context === void 0 ? void 0 : context.formRegister(name, {
49
49
  validate: (v, f) => {
50
+ if (!v)
51
+ v = '';
50
52
  if (v.length <= 0 && required)
51
53
  return 'Este campo é obrigatório';
52
54
  if (v.length < 5 && required)
package/package.json CHANGED
@@ -1,38 +1,25 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@emotion/react": "^11.10.6",
10
- "@emotion/styled": "^11.10.6",
11
9
  "@mui/icons-material": "^5.11.16",
12
10
  "@mui/lab": "^5.0.0-alpha.127",
13
11
  "@mui/material": "^5.12.1",
14
12
  "@mui/x-date-pickers": "^6.2.0",
15
- "cookies-next": "^2.1.1",
16
- "dayjs": "^1.11.7",
17
- "jwt-decode": "^3.1.2",
13
+ "@emotion/react": "^11.10.6",
14
+ "@emotion/styled": "^11.10.6",
15
+ "@types/lodash.get": "^4.4.7",
18
16
  "lodash.get": "^4.4.2",
19
- "next": "^13.3.0",
20
- "react": "^18.2.0",
21
- "react-hook-form": "^7.43.9",
22
- "react-imask": "^6.6.0",
17
+ "jwt-decode": "^3.1.2",
23
18
  "react-query": "^3.39.3",
24
- "typescript": "^5.0.4"
25
- },
26
- "devDependencies": {
27
- "@babel/preset-env": "^7.21.4",
28
- "@babel/preset-react": "^7.18.6",
29
- "@babel/preset-typescript": "^7.21.4",
30
- "@tsconfig/recommended": "^1.0.2",
31
- "@types/lodash.get": "^4.4.7",
32
- "@types/react": "^18.0.37",
33
- "prop-types": "15.8.1",
34
- "react-dom": "18.2.0",
35
- "@types/node": "18.16.1"
19
+ "react-hook-form": "^7.43.9",
20
+ "dayjs": "^1.11.7",
21
+ "cookies-next": "^2.1.1",
22
+ "react-imask": "^6.6.0"
36
23
  },
37
24
  "repository": {
38
25
  "type": "git",