@ssplib/react-components 0.0.241 → 0.0.242

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.
@@ -76,7 +76,7 @@ interface FilterValue {
76
76
  value: string | any;
77
77
  value2?: string | any;
78
78
  useList?: {
79
- id: string;
79
+ id: string | number;
80
80
  label: string;
81
81
  }[];
82
82
  customFunc?: string;
@@ -54,7 +54,8 @@ function removePunctuationAndAccents(text) {
54
54
  return cleanedText;
55
55
  }
56
56
  function formatarString(str) {
57
- return str
57
+ const value = typeof str !== 'string' ? str.toString() : str;
58
+ return value
58
59
  .normalize('NFD')
59
60
  .replace(/[\u0300-\u036f]/g, '')
60
61
  .toLowerCase()
@@ -693,7 +694,7 @@ hideTitleCSV = false, csvExcludeUpper = [], multipleDataPath = '', expandTextMax
693
694
  react_1.default.createElement(Typography_1.default, { fontSize: 24, textAlign: 'center', fontFamily: 'Inter' },
694
695
  error.status === 403 && 'Acesso negado',
695
696
  error.status === 500 && (react_1.default.createElement(material_1.Box, { fontWeight: 500, textAlign: 'center' },
696
- react_1.default.createElement(icons_material_1.ReportProblemRounded, { sx: { transform: 'scale(2)', paddingX: 4, marginY: 1, fill: '#3e3129' } }),
697
+ react_1.default.createElement(icons_material_1.ReportProblemRounded, { sx: { transform: 'scale(2)', marginY: 1, fill: '#3e3129' } }),
697
698
  react_1.default.createElement(material_1.Box, null, customErrorMsg ? (customErrorMsg) : (react_1.default.createElement(react_1.default.Fragment, null,
698
699
  "N\u00E3o foi poss\u00EDvel se conectar ao servidor no momento. Por favor, aguarde alguns instantes e tente de novo.",
699
700
  react_1.default.createElement("br", null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.241",
3
+ "version": "0.0.242",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",