@ssplib/react-components 0.0.70 → 0.0.71

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.
@@ -90,13 +90,12 @@ function FileUpload({ name, tipoArquivo, title, required = false, multiple = fal
90
90
  }, [files, context]);
91
91
  const deleteFile = (0, react_1.useCallback)((e, id) => {
92
92
  if (clientDelete) {
93
- console.log('aa');
94
93
  setFiles(files.filter((x) => x.id !== id));
95
94
  context.setFilesUid((fId) => fId.filter((idd) => idd.CO_SEQ_ARQUIVO !== id));
96
95
  return;
97
96
  }
98
97
  if (Object.keys(fileIds).includes(id.toString())) {
99
- fetch(`${apiURL}/files/${fileIds[id]}`, {
98
+ fetch(`${apiURL}/${fileIds[id]}`, {
100
99
  method: 'DELETE',
101
100
  headers: {
102
101
  Authorization: `Bearer ${user === null || user === void 0 ? void 0 : user.token}`,
@@ -41,7 +41,7 @@ const TextMaskCustom = react_1.default.forwardRef(function TextMaskCustom(props,
41
41
  const { onChange, maskProps, onMask, maskValue, setMaskValue } = props, prop = __rest(props, ["onChange", "maskProps", "onMask", "maskValue", "setMaskValue"]);
42
42
  const [mask, setMask] = (0, react_1.useState)(maskProps.mask);
43
43
  delete prop.value;
44
- return (react_1.default.createElement(react_imask_1.IMaskInput, Object.assign({}, prop, maskProps, { mask: mask, inputRef: ref, onAccept: (value) => {
44
+ return (react_1.default.createElement(react_imask_1.IMaskInput, Object.assign({}, prop, maskProps, { mask: mask, autoComplete: 'off', inputRef: ref, onAccept: (value) => {
45
45
  setMaskValue(value);
46
46
  if (!onMask)
47
47
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",