@ssplib/react-components 0.0.116 → 0.0.117

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.
@@ -38,11 +38,10 @@ const lodash_get_1 = __importDefault(require("lodash.get"));
38
38
  const react_1 = __importStar(require("react"));
39
39
  const auth_1 = require("../../../context/auth");
40
40
  const form_1 = require("../../../context/form");
41
- const material_2 = require("@mui/material");
42
41
  function FileUpload({ name, tipoArquivo, title, required = false, multiple = false, apiURL, xs = 12, sm, md, }) {
43
42
  const context = (0, react_1.useContext)(form_1.FormContext);
44
43
  const { user } = (0, react_1.useContext)(auth_1.AuthContext);
45
- const theme = (0, material_2.useTheme)();
44
+ const theme = (0, material_1.useTheme)();
46
45
  const isSmall = (0, material_1.useMediaQuery)(theme.breakpoints.only('xs'));
47
46
  const [files, setFiles] = (0, react_1.useState)([]);
48
47
  const [filesLoaded, setFilesLoaded] = (0, react_1.useState)([]);
@@ -132,7 +131,7 @@ function FileUpload({ name, tipoArquivo, title, required = false, multiple = fal
132
131
  };
133
132
  }, []);
134
133
  return (react_1.default.createElement(material_1.Grid, Object.assign({ item: true }, { xs, sm, md }, { sx: { width: '100%' } }),
135
- react_1.default.createElement(material_1.FormLabel, { required: required, sx: { marginBottom: 2, textTransform: 'capitalize' } }, title),
134
+ react_1.default.createElement(material_1.InputLabel, { required: required, sx: { marginBottom: 2, textTransform: 'capitalize' } }, title),
136
135
  react_1.default.createElement(material_1.Box, { sx: { backgroundColor: '#e2eafc', padding: 1, borderRadius: 1, marginTop: 1 } },
137
136
  react_1.default.createElement("input", Object.assign({ id: name, type: 'file', multiple: multiple }, context === null || context === void 0 ? void 0 : context.formRegister(name, {
138
137
  validate: (v, f) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",