@ssplib/react-components 0.0.69 → 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;
@@ -126,7 +126,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
126
126
  if (status.includes(key)) {
127
127
  switch (key) {
128
128
  case 'P':
129
- if ('pendente'.includes(searchValue.toLowerCase())) {
129
+ if ('EM ANÁLISE'.includes(searchValue.toLowerCase())) {
130
130
  exists = true;
131
131
  }
132
132
  return;
@@ -236,7 +236,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
236
236
  const getStatusMsg = (0, react_1.useCallback)((cod) => {
237
237
  switch (cod) {
238
238
  case 'P':
239
- return (react_1.default.createElement(Typography_1.default, { color: '#F59E0B', fontWeight: 600, fontFamily: 'Inter' }, "PENDENTE"));
239
+ return (react_1.default.createElement(Typography_1.default, { color: '#F59E0B', fontWeight: 600, fontFamily: 'Inter' }, "EM AN\u00C1LISE"));
240
240
  case 'A':
241
241
  return (react_1.default.createElement(Typography_1.default, { color: '#22C55E', fontWeight: 600, fontFamily: 'Inter' }, "CADASTRADO"));
242
242
  case 'C':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.69",
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>",